package org.arclib.examples.signal; 

/**
 Signal and Slot for Java
 Copyright (C) 2003 Thia Yeo Ching (tycordinal@yahoo.co.uk)
 http://sourceforge.net/projects/javasignalslot/

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

import org.arclib.signal.ISlotProvider;

/**
 * Author: Thia Yeo Ching, tycordinal@yahoo.co.uk
 * Date: Mar 27, 2003
 * Time: 1:35:48 AM
 */
class NeedAll extends NamedObject implements ISlotProvider
{

  public NeedAll()
  {
    super("NeedAll");
  }

  public void setStringObject(StringObject so)
  {

    System.out.println(super.toString() + ":got String:" + so.o);

  }

  public void setIntObject(IntObject so)
  {

    System.out.println(super.toString() + ":got Int:" + so.o);


  }

  public void wakeUp()
  {
    System.out.println(super.toString() + ":Yes i am awake!");
  }
 /*********
  public void slot(String slotName, Object signalData)
  {
    if (slotName.equals(STR_SLOT))
    {
      StringObject so = (StringObject) signalData;
      System.out.println(super.toString() + ":got String:" + so.o);
      return;
    }

    if (slotName.equals(INT_SLOT))
    {
      IntObject so = (IntObject) signalData;
      System.out.println(super.toString() + ":got Int:" + so.o);
      return;
    }

    if (slotName.equals(WAKEUP_SLOT))
    {
      System.out.println(super.toString() + ":Yes i am awake!");
      return;
    }

  }
  ********/
}

